(global.webpackJsonp = global.webpackJsonp || []).push([ [ "course/course/courseDetails" ], {
    "576f": function(e, t, i) {
        (function(e) {
            i("1067"), n(i("66fd"));
            var t = n(i("dcf7"));
            function n(e) {
                return e && e.__esModule ? e : {
                    default: e
                };
            }
            wx.__webpack_require_UNI_MP_PLUGIN__ = i, e(t.default);
        }).call(this, i("543d").createPage);
    },
    "6b64": function(e, t, i) {},
    "7e45": function(e, t, i) {
        var n = i("6b64");
        i.n(n).a;
    },
    "7f13": function(e, t, i) {
        (function(e) {
            Object.defineProperty(t, "__esModule", {
                value: !0
            }), t.default = void 0;
            var n, o = i("556d"), s = (i("7a6d"), i("9b04")), r = i("7960"), u = i("b806"), a = i("db8f"), c = i("a71e"), d = (i("4771"), 
            i("8434")), h = (p(i("03b8")), p(i("801c"))), l = i("26cb");
            function p(e) {
                return e && e.__esModule ? e : {
                    default: e
                };
            }
            function f(e) {
                return function(e) {
                    if (Array.isArray(e)) return I(e);
                }(e) || function(e) {
                    if ("undefined" != typeof Symbol && Symbol.iterator in Object(e)) return Array.from(e);
                }(e) || m(e) || function() {
                    throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
                }();
            }
            function m(e, t) {
                if (e) {
                    if ("string" == typeof e) return I(e, t);
                    var i = Object.prototype.toString.call(e).slice(8, -1);
                    return "Object" === i && e.constructor && (i = e.constructor.name), "Map" === i || "Set" === i ? Array.from(e) : "Arguments" === i || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(i) ? I(e, t) : void 0;
                }
            }
            function I(e, t) {
                (null == t || t > e.length) && (t = e.length);
                for (var i = 0, n = new Array(t); i < t; i++) n[i] = e[i];
                return n;
            }
            function _(e, t) {
                var i = Object.keys(e);
                if (Object.getOwnPropertySymbols) {
                    var n = Object.getOwnPropertySymbols(e);
                    t && (n = n.filter(function(t) {
                        return Object.getOwnPropertyDescriptor(e, t).enumerable;
                    })), i.push.apply(i, n);
                }
                return i;
            }
            function y(e) {
                for (var t = 1; t < arguments.length; t++) {
                    var i = null != arguments[t] ? arguments[t] : {};
                    t % 2 ? _(Object(i), !0).forEach(function(t) {
                        g(e, t, i[t]);
                    }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(i)) : _(Object(i)).forEach(function(t) {
                        Object.defineProperty(e, t, Object.getOwnPropertyDescriptor(i, t));
                    });
                }
                return e;
            }
            function g(e, t, i) {
                return t in e ? Object.defineProperty(e, t, {
                    value: i,
                    enumerable: !0,
                    configurable: !0,
                    writable: !0
                }) : e[t] = i, e;
            }
            var b = "", v = {
                components: {
                    navs: function() {
                        i.e("components/kp-navs/navs").then(function() {
                            return resolve(i("4aba"));
                        }.bind(null, i)).catch(i.oe);
                    },
                    kpvideo: function() {
                        Promise.all([ i.e("common/vendor"), i.e("components/kp-video/video") ]).then(function() {
                            return resolve(i("f177"));
                        }.bind(null, i)).catch(i.oe);
                    },
                    kpaudio: function() {
                        Promise.all([ i.e("common/vendor"), i.e("components/kp-audio/index") ]).then(function() {
                            return resolve(i("9e03"));
                        }.bind(null, i)).catch(i.oe);
                    },
                    ewm: function() {
                        i.e("course/components/ewm").then(function() {
                            return resolve(i("a28c"));
                        }.bind(null, i)).catch(i.oe);
                    },
                    list: function() {
                        i.e("course/components/questionList").then(function() {
                            return resolve(i("5b8a"));
                        }.bind(null, i)).catch(i.oe);
                    }
                },
                computed: y(y({}, (0, l.mapGetters)([ "configs", "user", "mainColor", "iphoneXStyle", "isIphone" ])), {}, {
                    cancelStyle: function() {
                        return {
                            backgroundColor: "#fff",
                            color: this.mainColor,
                            border: "1rpx solid " + this.mainColor,
                            "border-radius": "8rpx"
                        };
                    },
                    confirmStyle: function() {
                        return {
                            backgroundColor: this.mainColor,
                            color: "#fff",
                            "border-radius": "8rpx"
                        };
                    }
                }),
                data: function() {
                    var e;
                    return {
                        scrollTopView: -1,
                        scrollId: "",
                        audioData: {
                            src: "",
                            title: "",
                            seek: "",
                            id: "",
                            sid: "",
                            course_id: "",
                            coverImg: "",
                            is_speed_play: "",
                            duration: ""
                        },
                        serviceClass: "",
                        dataNavs: [],
                        menus: [],
                        swiperDateList: [],
                        cur: 0,
                        currentTab: 0,
                        swiperHeight: "",
                        type: 2,
                        videoInfos: (e = {
                            width: "100%",
                            height: "",
                            src: "",
                            reFresh: !0,
                            sid: "",
                            course_id: "",
                            screen_style: "",
                            is_like: "",
                            is_try: "",
                            try_time: "",
                            id: "",
                            seek: "",
                            second: "",
                            is_speed_play: ""
                        }, g(e, "try_time", ""), g(e, "marquee", {
                            marqueeSize: "",
                            marqueeColor: "",
                            marqueeOpacity: "",
                            marqueeIsCopyright: "",
                            marqueeCopyright: "",
                            userName: ""
                        }), e),
                        isFull: !0,
                        info: {
                            width: "",
                            height: ""
                        },
                        weixinShares: "",
                        id: "",
                        courseInfo: {
                            id: "",
                            type: "",
                            title: "",
                            price_type: "",
                            menu_style: "",
                            is_copy: "",
                            is_like: "",
                            is_try: "",
                            try_time: "",
                            screen_style: "",
                            is_speed_play: "",
                            buy: {
                                code: ""
                            },
                            marquee: {
                                marqueeSize: "",
                                marqueeColor: "",
                                marqueeOpacity: "",
                                marqueeIsCopyright: "",
                                marqueeCopyright: ""
                            },
                            user_svip: {
                                svip: "",
                                svip_course: ""
                            }
                        },
                        params: {
                            type: 1,
                            id: ""
                        },
                        lparams: {
                            type: 1
                        },
                        anParams: {
                            data: [],
                            params: {
                                type: 5,
                                paddingLR: "0px"
                            }
                        },
                        isShow: !0,
                        html: "",
                        curMenus: -1,
                        curBtn: -1,
                        isPalyFlagBtn: !0,
                        topId: -1,
                        topIndex: -1,
                        comment: [],
                        pager: 1,
                        modalShow: !1,
                        inputComcontent: "",
                        comment_action: {
                            cid: 0,
                            uid: 0
                        },
                        isRequest: !1,
                        timeInter: "",
                        user_id: "",
                        courseLists: {
                            data: [],
                            params: {
                                type: 4,
                                paddingLR: "0px"
                            }
                        },
                        annerLists: [],
                        ksLists: [],
                        columnLists: {
                            data: [],
                            params: {
                                type: 4,
                                paddingLR: "0px"
                            }
                        },
                        ewnData: {
                            img: "",
                            title: ""
                        },
                        isTouch: !0,
                        canShow: !1,
                        canIsShow: !1,
                        isGoLearn: !0,
                        likes: 0,
                        isVip: "",
                        isBack: 1,
                        checkClass: !1,
                        times: [ {
                            name: "10分钟",
                            time: "10"
                        }, {
                            name: "30分钟",
                            time: "30"
                        }, {
                            name: "60分钟",
                            time: "60"
                        }, {
                            name: "120分钟",
                            time: "120"
                        } ],
                        timeNum: -1,
                        isWeChats: !1,
                        heights: "",
                        topHeights: "",
                        currentTabId: "",
                        courseMenu: "",
                        swiperId: "",
                        tabMenu: "",
                        criticalValue: "",
                        detailTop: "",
                        scrollTop: 0,
                        windowHeight: "",
                        boxTopHeight: "",
                        products: {
                            data: [],
                            params: {
                                bgColor: "#FF3C29",
                                bgType: "1",
                                bottomRadius: "6px",
                                btnColor: "#FF3C29",
                                btnType: "1",
                                goodBgColor: "#FFFFFF",
                                isBtn: "1",
                                isLinePrice: "1",
                                isMake: "0",
                                isPrice: "1",
                                isSales: "1",
                                linePriceColor: "#969696",
                                lineTitle: "原价",
                                makeColor: "#367bf5",
                                makeTitle: "推荐",
                                makeType: "1",
                                num: "10",
                                paddingBottom: "0px",
                                paddingLR: "5px",
                                paddingTop: "5px",
                                priceColor: "#FF3C29",
                                salesColor: "#969696",
                                salesTitle: "销量",
                                show: "1",
                                sourse: "1",
                                titleColor: "#212121",
                                topRadius: "6px",
                                type: "3",
                                type_id: null
                            }
                        },
                        isShu: !1,
                        users_id: "",
                        subTotalMenus: [],
                        valueCup: [ "0" ],
                        isCup: !1
                    };
                },
                created: function() {
                    var t = this;
                    b = this, e.getSystemInfo({
                        success: function(e) {
                            t.windowHeight = e.windowHeight, t.screenWidth = e.windowWidth, t.videoInfos.height = Math.floor(e.windowWidth / 1.77) - 1 + "px", 
                            t.bettwenHeight = (e.windowWidth / 1.64).toFixed(2) - (e.windowWidth / 1.77).toFixed(2), 
                            t.heights = (e.windowWidth / 1.64).toFixed(2) + "px", t.topHeights = (e.windowWidth / 1.77 + 10).toFixed(2) + "px", 
                            t.detailTop = Math.floor(e.windowWidth / 1.77) - 1 + "px";
                        }
                    });
                },
                mounted: function() {},
                onLoad: function(e) {
                    var t = this;
                    this.id = e.id || (0, a.getPageId)(t).id, this.params.id = e.id || (0, a.getPageId)(t).id, 
                    (0, c.isEmpty)(e.pid) || h.default.commit("config/SET_PID", e.pid), (0, c.isEmpty)(decodeURIComponent(e.scene).split("pid=")[1]) || h.default.commit("config/SET_PID", decodeURIComponent(e.scene).split("pid=")[1]), 
                    (0, u.init)(this).then(function(e) {
                        t.getDetail(), t.getVip();
                    }).catch(function(e) {
                        return console.log(e);
                    });
                },
                onShow: function() {},
                onHide: function() {
                    if (clearInterval(this.timeInter), 0 == this.menus.length) return !1;
                    this.isShow || 1 == this.courseInfo.type && this.$refs.kpVideos.stopPlays(0);
                },
                onUnload: function() {
                    if (clearInterval(this.timeInter), 0 == this.menus.length) return !1;
                    this.isShow || (1 == this.courseInfo.type ? this.$refs.kpVideos.stopPlays(0) : 2 == this.courseInfo.type && this.$refs.kpAudios.stopTrueAudio());
                },
                onReachBottom: function() {
                    return (4 == this.courseInfo.type || 2 == this.currentTab) && (4 != this.courseInfo.type || 1 == this.currentTab) && (this.pager++, 
                    void this.getComment());
                },
                onPageScroll: function(e) {
                    this.discard(), this.scrollTop = e.scrollTop;
                },
                onShareAppMessage: function(e) {
                    var t = (0, c.isEmpty)(this.user.id) ? 0 : this.user.id;
                    return "button" === e.from && this.$refs.BotShow.isBotShow(), {
                        title: this.courseInfo.title,
                        path: "/course/course/courseDetails?id=" + this.id + "&pid=" + t
                    };
                },
                onShareTimeline: function() {
                    var e = (0, c.isEmpty)(this.user.id) ? 0 : this.user.id;
                    return {
                        title: this.courseInfo.title,
                        query: "id=" + this.id + "&pid=" + e,
                        imageUrl: this.courseInfo.img
                    };
                },
                methods: (n = {
                    changeI: function(e) {
                        var t = this;
                        this.isCup = !0, this.valueCup = [], this.valueCup = e, this.$nextTick(function() {
                            t.$refs.collapse.resize();
                        }), setTimeout(function() {
                            t.getChange(t.swiperDateList[t.currentTab].id), t.$forceUpdate();
                        }, 100);
                    },
                    shouDongChange: function(e) {
                        var t = this;
                        this.isCup = !0;
                        var i = "";
                        t.menus.map(function(t, n) {
                            if (t.id == e) return i = n + "", !1;
                        }), t.valueCup.includes(i) || t.valueCup.push(i), this.$nextTick(function() {
                            t.$refs.collapse.resize();
                        }), setTimeout(function() {
                            t.getChange(t.swiperDateList[t.currentTab].id), t.$forceUpdate();
                        }, 100);
                    },
                    seeVip: function(e) {
                        (0, d.route)({
                            url: "/member/member/svip",
                            type: 1,
                            data: {
                                card_id: e.card_id
                            }
                        });
                    },
                    goLeature: function() {
                        (0, d.route)({
                            url: "/course/course/lecturer",
                            type: 1,
                            data: {
                                id: this.courseInfo.lecturer_id
                            }
                        });
                    },
                    showService: function() {
                        this.serviceClass = "show";
                    },
                    discards: function() {},
                    hideService: function() {
                        var e = this;
                        this.serviceClass = "hide", setTimeout(function() {
                            e.serviceClass = "none";
                        }, 200);
                    },
                    rightLoweR: function() {
                        if (this.currentTab == this.dataNavs.length - 1) return !1;
                        var e = this.currentTab + 1, t = this.dataNavs[e];
                        this.tab(t, e);
                    },
                    goProductDetail: function(e) {
                        (0, d.route)({
                            url: "/shop/index",
                            type: 1,
                            data: {
                                id: e
                            }
                        });
                    },
                    ready: function() {
                        this.getChange(this.currentTabId);
                    },
                    discard: (0, a.throttles)(function() {
                        "detail" == b.currentTabId && b.getChange(b.currentTabId);
                    }, 500),
                    getMember: function() {
                        (0, d.route)({
                            url: "/member/member/memCenter",
                            type: 1,
                            data: {}
                        });
                    },
                    sure: function() {
                        var e = this;
                        switch (this.timeNum) {
                          case 0:
                            e.$refs.kpAudios.setTime(10);
                            break;

                          case 1:
                            e.$refs.kpAudios.setTime(30);
                            break;

                          case 2:
                            e.$refs.kpAudios.setTime(60);
                            break;

                          case 3:
                            e.$refs.kpAudios.setTime(120);
                        }
                        e.hideCheck();
                    },
                    tabTime: function(e) {
                        this.timeNum = e;
                    },
                    show: function() {
                        this.checkClass = "show";
                    },
                    hideCheck: function() {
                        var e = this;
                        this.checkClass = "hide", setTimeout(function() {
                            e.checkClass = "none";
                        }, 200);
                    },
                    clkVideo: function() {},
                    backFull: function() {
                        this.tab(this.swiperDateList[0], 0);
                    },
                    shareModal: function() {},
                    share: function() {
                        var e = this;
                        (0, r.h5JudgeLogin)(2).then(function(t) {
                            t || e.$refs.BotShow.isBotShow();
                        });
                    },
                    getVip: function() {
                        var e = this;
                        (0, o.isVip)({}).then(function(t) {
                            e.isVip = t.vip;
                        });
                    },
                    addLecturer: function() {
                        this.$refs.kewm.show();
                    },
                    goLearn: function() {
                        var e = this;
                        if (0 == e.menus.length) return 1 == e.courseInfo.type ? this.$toast("后台未设置视频", "none") : this.$toast("后台未设置音频", "none"), 
                        !1;
                        var t = -1;
                        if (5 == e.courseInfo.menu_style) for (var i = 0; i < this.subTotalMenus.length; i++) {
                            if (0 == e.courseInfo.buy.code && 1 == e.subTotalMenus[i].is_try) {
                                t = i;
                                break;
                            }
                            if (1 == e.courseInfo.buy.code && e.subTotalMenus[i].is_end_study) {
                                t = i;
                                break;
                            }
                        } else for (var n = 0; n < this.menus.length; n++) {
                            if (0 == e.courseInfo.buy.code && 1 == e.menus[n].is_try) {
                                t = n;
                                break;
                            }
                            if (1 == e.courseInfo.buy.code && e.menus[n].is_end_study) {
                                t = n;
                                break;
                            }
                        }
                        if (0 == this.courseInfo.buy.code && -1 == t) return !e.isIphone || e.isIphone && 1 == e.configs.is_ios_pay ? 1 == this.courseInfo.is_alone_sale && 1 == this.courseInfo.price_type || this.isVip && 1 == this.courseInfo.vip_free_see && (2 == this.courseInfo.price_type || 0 == this.courseInfo.is_alone_sale) ? this.$toast("请先领取该课程", "none") : this.$toast("请先购买该课程", "none") : this.$toast(e.configs.ios_pay_title, "none"), 
                        !1;
                        if (t = 1 == this.courseInfo.buy.code && -1 == t ? 0 : t, this.curMenus = t, this.curBtn = t, 
                        this.isPalyFlagBtn = !0, this.isGoLearn && 1 == this.courseInfo.type) {
                            this.isShow = !1, this.swiperId = "menu", this.cur = this.courseMenu;
                            this.tab({
                                id: "menu"
                            }, this.courseMenu), 5 == e.courseInfo.menu_style ? (this.changeVideo(this.subTotalMenus[t], t), 
                            e.shouDongChange(this.subTotalMenus[t].menu_id)) : this.changeVideo(this.menus[t], t), 
                            this.isGoLearn = !1;
                        } else if (this.isGoLearn && 2 == this.courseInfo.type) {
                            this.isShow = !0, this.isShow = !1, this.swiperId = "menu";
                            this.cur = this.courseMenu, this.tab({
                                id: "menu"
                            }, this.courseMenu), 5 == e.courseInfo.menu_style ? (this.changeAudio(this.subTotalMenus[t], t), 
                            e.shouDongChange(this.subTotalMenus[t].menu_id)) : this.changeAudio(this.menus[t], t), 
                            this.isGoLearn = !1;
                        }
                        this.scrollId = "tabNum" + t;
                    },
                    goDetail: function(e) {
                        (0, d.route)({
                            url: "/course/course/courseDetails",
                            type: 1,
                            data: {
                                id: e.id
                            }
                        });
                    },
                    bindPhoneSuccess: function() {
                        this.getDetail();
                    },
                    successLogins: function() {
                        this.getDetail();
                    },
                    endVideo: function(e) {
                        var t = this;
                        if (0 == t.courseInfo.buy.code) return !t.isIphone || t.isIphone && 1 == t.configs.is_ios_pay ? 1 == this.courseInfo.is_alone_sale && 1 == this.courseInfo.price_type || this.isVip && 1 == this.courseInfo.vip_free_see && (2 == this.courseInfo.price_type || 0 == this.courseInfo.is_alone_sale) ? this.$toast("试看结束,请先领取该课程", "none") : this.$toast("试看结束,请先购买该课程", "none") : t.isIphone && 0 == t.configs.is_ios_pay && t.$toast(t.configs.ios_pay_title, "none"), 
                        !1;
                        e < t.menus.length - 1 && 5 != t.courseInfo.menu_style ? (t.isShow = !1, t.curMenus = e + 1, 
                        t.curBtn = e + 1, t.isPalyFlagBtn = !0, t.menus[e].percent = "100", t.changeVideo(t.menus[e + 1], e + 1)) : 5 == t.courseInfo.menu_style && e < t.subTotalMenus.length - 1 ? (t.isShow = !1, 
                        t.curMenus = e + 1, t.curBtn = e + 1, t.isPalyFlagBtn = !0, t.subTotalMenus[e].percent = "100", 
                        t.changeVideo(t.subTotalMenus[e + 1], e + 1), t.subTotalMenus[e + 1].menu_id != t.subTotalMenus[e].menu_id && t.shouDongChange(t.subTotalMenus[e + 1].menu_id)) : (t.isPalyFlagBtn = !1, 
                        t.$refs.kpVideos.palyFlag = !0);
                    },
                    endAudio: function(e) {
                        var t = this;
                        if (0 == t.courseInfo.buy.code) return !t.isIphone || t.isIphone && 1 == t.configs.is_ios_pay ? 1 == this.courseInfo.is_alone_sale && 1 == this.courseInfo.price_type || this.isVip && 1 == this.courseInfo.vip_free_see && (2 == this.courseInfo.price_type || 0 == this.courseInfo.is_alone_sale) ? this.$toast("试看结束,请先领取该课程", "none") : this.$toast("试看结束,请先购买该课程", "none") : t.isIphone && 0 == t.configs.is_ios_pay && t.$toast(t.configs.ios_pay_title, "none"), 
                        !1;
                        e < t.menus.length - 1 ? (t.isShow = !1, t.curMenus = e + 1, t.curBtn = e + 1, t.isPalyFlagBtn = !0, 
                        t.menus[e].percent = "100", t.changeAudio(t.menus[e + 1], e + 1)) : 5 == t.courseInfo.menu_style && e < t.subTotalMenus.length - 1 ? (t.isShow = !1, 
                        t.curMenus = e + 1, t.curBtn = e + 1, t.isPalyFlagBtn = !0, t.subTotalMenus[e].percent = "100", 
                        t.changeAudio(t.subTotalMenus[e + 1], e + 1), t.subTotalMenus[e + 1].menu_id != t.subTotalMenus[e].menu_id && t.shouDongChange(t.subTotalMenus[e + 1].menu_id)) : (t.isPalyFlagBtn = !1, 
                        t.$refs.kpAudios.status = 0);
                    },
                    swichVideo: function(e, t) {
                        var i = this;
                        if (5 == i.courseInfo.menu_style) {
                            var n = parseInt(e.currentTime) / parseInt(i.subTotalMenus[i.topIndex].second) * 100;
                            i.subTotalMenus[i.topIndex].end_second = parseInt(e.currentTime), i.subTotalMenus[i.topIndex].percent = n > i.subTotalMenus[i.topIndex].percent ? parseInt(n) > 100 ? 100 : parseInt(n) : parseInt(i.subTotalMenus[i.topIndex].percent), 
                            i.changeVideo(e, t);
                        } else {
                            var o = parseInt(e.currentTime) / parseInt(i.menus[i.topIndex].second) * 100;
                            i.menus[i.topIndex].end_second = parseInt(e.currentTime), i.menus[i.topIndex].percent = o > i.menus[i.topIndex].percent ? parseInt(o) > 100 ? 100 : parseInt(o) : parseInt(i.menus[i.topIndex].percent), 
                            i.changeVideo(e, t);
                        }
                    },
                    swichAudio: function(e, t) {
                        var i = this;
                        if (5 == i.courseInfo.menu_style) {
                            var n = parseInt(e.currentTime) / parseInt(i.subTotalMenus[i.topIndex].second) * 100;
                            i.subTotalMenus[i.topIndex].end_second = parseInt(e.currentTime), i.subTotalMenus[i.topIndex].percent = n > i.subTotalMenus[i.topIndex].percent ? parseInt(n) > 100 ? 100 : parseInt(n) : parseInt(i.subTotalMenus[i.topIndex].percent), 
                            i.changeAudio(e, t);
                        } else {
                            var o = parseInt(e.currentTime) / parseInt(i.menus[i.topIndex].second) * 100;
                            i.menus[i.topIndex].end_second = parseInt(e.currentTime), i.menus[i.topIndex].percent = o > i.menus[i.topIndex].percent ? parseInt(o) > 100 ? 100 : parseInt(o) : parseInt(i.menus[i.topIndex].percent), 
                            i.changeAudio(e, t);
                        }
                    },
                    changeVideo: function(e, t) {
                        var i = this;
                        if (i.videoInfos.src = (0, a.codeLock)(e.url), i.videoInfos.sid = e.sid, i.videoInfos.second = e.second, 
                        i.videoInfos.id = e.id, i.videoInfos.index = t, i.topId = e.sid, i.topIndex = t, 
                        i.videoInfos.course_id = i.courseInfo.id, i.videoInfos.is_try = e.is_try, i.videoInfos.is_end_study = e.is_end_study, 
                        i.videoInfos.try_time = e.try_time, i.videoInfos.code = i.courseInfo.buy.code, i.videoInfos.screen_style = i.courseInfo.screen_style, 
                        i.videoInfos.is_speed_play = 1 == i.courseInfo.is_speed_play, i.videoInfos.is_screen = i.courseInfo.is_screen, 
                        e.second - e.end_second < 2 ? i.videoInfos.seek = 0 : i.videoInfos.seek = e.end_second, 
                        1 == i.courseInfo.is_screen) {
                            var n = {
                                marqueeSize: "",
                                marqueeColor: "",
                                marqueeOpacity: "",
                                marqueeIsCopyright: "",
                                marqueeCopyright: "",
                                userName: ""
                            };
                            n.marqueeSpeedBottom = i.courseInfo.marquee.marqueeSpeedBottom, n.marqueeSpeedTop = i.courseInfo.marquee.marqueeSpeedTop, 
                            n.marqueeIsCopyright = i.courseInfo.marquee.marqueeIsCopyright, n.marqueeCopyright = i.courseInfo.marquee.marqueeCopyright, 
                            n.marqueeColor = i.courseInfo.marquee.marqueeColor, n.userName = i.user.nickName + " (id" + i.user.id + ")", 
                            n.marqueeSize = i.courseInfo.marquee.marqueeSize + "rpx", n.marqueeOpacity = "0." + i.courseInfo.marquee.marqueeOpacity, 
                            i.videoInfos.marquee = 1 == i.courseInfo.is_screen ? n : "";
                        }
                        setTimeout(function() {
                            i.$refs.kpVideos.playVideo();
                        }, 100), setTimeout(function() {
                            i.$refs.kpVideos.exchangeSpeed({
                                id: 2
                            });
                        }, 400);
                    },
                    changeAudio: function(e, t) {
                        var i = this;
                        i.audioData.src = (0, a.codeLock)(e.url), i.audioData.sid = e.sid, i.audioData.coverImg = i.courseInfo.img, 
                        i.audioData.second = e.second, i.audioData.id = e.id, i.audioData.index = t, i.audioData.title = e.title, 
                        i.audioData.is_speed_play = 1 == i.courseInfo.is_speed_play, i.topId = e.sid, i.topIndex = t, 
                        i.audioData.course_id = i.courseInfo.id, i.audioData.is_try = e.is_try, i.audioData.try_time = e.try_time, 
                        i.audioData.is_end_study = e.is_end_study, i.audioData.code = i.courseInfo.buy.code, 
                        e.second - e.end_second < 2 ? i.audioData.seek = 0 : i.audioData.seek = e.end_second, 
                        setTimeout(function() {
                            i.$refs.kpAudios.playAudio();
                        }, 100);
                    },
                    isPalyFlag: function(e) {
                        this.isPalyFlagBtn = !e;
                    },
                    swichMenus: function(e, t) {
                        var i = this;
                        if (0 == i.courseInfo.buy.code && 0 == e.is_try) return !i.isIphone || i.isIphone && 1 == i.configs.is_ios_pay ? 1 == this.courseInfo.is_alone_sale && 1 == this.courseInfo.price_type || this.isVip && 1 == this.courseInfo.vip_free_see && (2 == this.courseInfo.price_type || 0 == this.courseInfo.is_alone_sale) ? this.$toast("请先领取该课程", "none") : this.$toast("请先购买该课程", "none") : i.isIphone && 0 == i.configs.is_ios_pay && i.$toast(i.configs.ios_pay_title, "none"), 
                        !1;
                        i.isShow = !1, i.isGoLearn = !1, (0, r.h5JudgeLogin)(2).then(function(n) {
                            if (!n) if (1 == i.courseInfo.type && (i.$refs.kpVideos.isLoad = !0), i.curMenus = t, 
                            i.curBtn = t, i.isPalyFlagBtn = !0, -1 == i.topId) switch (i.courseInfo.type) {
                              case "1":
                                i.changeVideo(e, t);
                                break;

                              case "2":
                                i.changeAudio(e, t);
                            } else switch (i.courseInfo.type) {
                              case "1":
                                i.$refs.kpVideos.swichMenu(e, t, i.topId);
                                break;

                              case "2":
                                i.$refs.kpAudios.swichMenuAudio(e, t, i.topId);
                            }
                        });
                    },
                    getDetail: function() {
                        var t = this, i = {
                            id: t.id,
                            user_id: t.user_id
                        };
                        (0, s.courseInfo)(i).then(function(i) {
                            t.courseInfo = i, t.html = 0 == i.buy.code && 3 == i.type ? i.try_content : i.content, 
                            e.setNavigationBarTitle({
                                title: t.courseInfo.title
                            }), 5 == t.courseInfo.menu_style && (t.menus = i.menu), 4 != t.courseInfo.type && 3 != t.courseInfo.type && 5 != t.courseInfo.type && i.menu.map(function(e, i) {
                                5 == t.courseInfo.menu_style && e.children.length > 0 ? t.subTotalMenus = [].concat(f(t.subTotalMenus), f(e.children)) : t.menus.push({
                                    title: e.title,
                                    end_second: e.end_second,
                                    second: e.second,
                                    sid: e.sid,
                                    id: e.id,
                                    name: e.title,
                                    percent: e.percent,
                                    url: e.url,
                                    is_try: e.is_try,
                                    is_end_study: e.is_end_study,
                                    try_time: e.try_time
                                });
                            }), t.dataNavs = i.tab.map(function(e, t) {
                                return {
                                    id: e.type,
                                    name: e.title
                                };
                            }), t.swiperId = t.dataNavs[0].id, t.criticalValue = 1 == t.courseInfo.vip_free_see && 0 == t.courseInfo.buy.code || 1 == t.courseInfo.is_ewm && 1 == t.courseInfo.buy.code ? 60 : 2, 
                            5 == t.courseInfo.type && (t.columnLists.data = i.courses), 1 == t.courseInfo.is_tab_relation && (t.relation_courses = i.relation_courses, 
                            1 == t.courseInfo.is_relation_course && (t.courseLists.data = i.relation_courses), 
                            1 == t.courseInfo.is_relation_good && (t.products.data = i.relation_goods)), t.courseInfo.papers.length > 0 && (t.ksLists = i.papers), 
                            t.courseInfo.annexs.length > 0 && (t.anParams.data = i.annexs), t.swiperDateList = [];
                            var n, o = 0, s = function(e, t) {
                                var i;
                                if ("undefined" == typeof Symbol || null == e[Symbol.iterator]) {
                                    if (Array.isArray(e) || (i = m(e)) || t && e && "number" == typeof e.length) {
                                        i && (e = i);
                                        var n = 0, o = function() {};
                                        return {
                                            s: o,
                                            n: function() {
                                                return n >= e.length ? {
                                                    done: !0
                                                } : {
                                                    done: !1,
                                                    value: e[n++]
                                                };
                                            },
                                            e: function(e) {
                                                throw e;
                                            },
                                            f: o
                                        };
                                    }
                                    throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
                                }
                                var s, r = !0, u = !1;
                                return {
                                    s: function() {
                                        i = e[Symbol.iterator]();
                                    },
                                    n: function() {
                                        var e = i.next();
                                        return r = e.done, e;
                                    },
                                    e: function(e) {
                                        u = !0, s = e;
                                    },
                                    f: function() {
                                        try {
                                            r || null == i.return || i.return();
                                        } finally {
                                            if (u) throw s;
                                        }
                                    }
                                };
                            }(t.dataNavs);
                            try {
                                for (s.s(); !(n = s.n()).done; ) {
                                    var r = n.value;
                                    "menu" == r.id && (t.courseMenu = o), t.swiperDateList.push({
                                        id: r.id,
                                        index: o
                                    }), 0 == o && (t.currentTabId = r.id), o++;
                                }
                            } catch (e) {
                                s.e(e);
                            } finally {
                                s.f();
                            }
                            t.getComment(), t.$nextTick(function() {
                                t.getChange(t.currentTabId);
                            }), t.canShow = !0, "comment" == t.currentTabId ? t.canIsShow = !0 : t.canIsShow = !1, 
                            1 == t.courseInfo.is_ewm && 1 == t.courseInfo.buy.code && (t.ewnData.img = t.courseInfo.ewm, 
                            t.ewnData.title = t.courseInfo.ewm_title);
                        });
                    },
                    getChange: function(e) {
                        var t = "." + e;
                        this.getElementHeight(t);
                    },
                    swiperChange: function(e) {
                        var t = e.target.current;
                        this.isBack = 0 == t ? 1 : 0, this.currentTab = t, this.cur = t, this.currentTabId = this.swiperDateList[t].id, 
                        this.swiperId = this.swiperDateList[t].id, "comment" == this.swiperDateList[t].id ? this.canIsShow = !0 : this.canIsShow = !1, 
                        this.getChange(this.swiperDateList[t].id);
                    },
                    getElementHeight: function(t, i) {
                        var n = this;
                        setTimeout(function() {
                            e.createSelectorQuery().select(t).boundingClientRect(function(e) {
                                if (n.isCup) n.isIphone ? n.swiperHeight = e.height + 100 > 300 ? e.height + 150 : 300 : n.swiperHeight = e.height + 100 > 300 ? e.height + 120 : 300; else switch (t) {
                                  case ".comment":
                                  case ".detail":
                                    n.swiperHeight = e.height + 100 > 300 ? e.height + 100 : 300;
                                    break;

                                  default:
                                    n.swiperHeight = e.height + 100 > 300 ? e.height + 50 : 300;
                                }
                            }).exec();
                        }, 150);
                    },
                    goAnnex: function(e) {
                        var t = this;
                        1 == t.courseInfo.buy.code ? (0, d.route)({
                            url: "/annex/detail",
                            type: 1,
                            data: {
                                id: e.id,
                                froms: 1,
                                courseId: t.courseInfo.id
                            }
                        }) : !t.isIphone || t.isIphone && 1 == t.configs.is_ios_pay ? 1 == this.courseInfo.is_alone_sale && 1 == this.courseInfo.price_type || this.isVip && 1 == this.courseInfo.vip_free_see && (2 == this.courseInfo.price_type || 0 == this.courseInfo.is_alone_sale) ? this.$toast("请先领取该课程", "none") : this.$toast("请先购买该课程", "none") : t.isIphone && 0 == t.configs.is_ios_pay && t.$toast(t.configs.ios_pay_title, "none");
                    },
                    enterDetail: function(e) {
                        var t = this;
                        1 == t.courseInfo.buy.code ? (0, d.route)({
                            url: "/question/paper/index",
                            type: 1,
                            data: {
                                id: e.id,
                                froms: 1,
                                courseId: t.courseInfo.id
                            }
                        }) : !t.isIphone || t.isIphone && 1 == t.configs.is_ios_pay ? 1 == this.courseInfo.is_alone_sale && 1 == this.courseInfo.price_type || this.isVip && 1 == this.courseInfo.vip_free_see && (2 == this.courseInfo.price_type || 0 == this.courseInfo.is_alone_sale) ? this.$toast("请先领取该课程", "none") : this.$toast("请先购买该课程", "none") : t.isIphone && 0 == t.configs.is_ios_pay && t.$toast(t.configs.ios_pay_title, "none");
                    }
                }, g(n, "share", function() {
                    var e = this;
                    (0, r.h5JudgeLogin)(2).then(function(t) {
                        t || e.$refs.BotShow.isBotShow();
                    });
                }), g(n, "openFull", function(e, t) {
                    this.isShu = e.isShu, 2 != t && (this.isFull = !this.isFull), this.modalShow = !1;
                    var i = "";
                    this.isShu ? (this.info.width = "100vw", this.info.height = "100vh", i = "100vh") : (this.info.width = "100vh", 
                    this.info.height = "100vw", i = e.screenWidth), this.isFull ? (this.videoInfos.height = Math.floor(e.windowWidth / 1.77) - 1 + "px", 
                    this.tab("", 0)) : (this.videoInfos.height = this.isShu ? i : i + "px", this.canIsShow = !0), 
                    this.videoInfos.width = this.isShu ? "100vw" : e.screenHeight + "px";
                }), g(n, "tab", function(e, t) {
                    this.cur = t, this.swiperId = e.id, "comment" == e.id ? this.canIsShow = !0 : this.canIsShow = !1, 
                    this.currentTab = t, this.getChange(this.swiperDateList[t].id), this.$forceUpdate();
                }), g(n, "goHome", function() {
                    e.reLaunch({
                        url: "/diy/diy/index"
                    });
                }), g(n, "action", function(e) {
                    var t = this;
                    (0, r.h5JudgeLogin)(2).then(function(i) {
                        i || ("collect" == e && (0, s.courseAttribute)({
                            id: t.courseInfo.id,
                            action: e
                        }).then(function(e) {
                            return t.courseInfo.is_collect = !t.courseInfo.is_collect, t.courseInfo.is_collect ? void t.$toast("收藏成功", "none") : void t.$toast("取消收藏", "none");
                        }), "like" == e && (0, s.courseAttribute)({
                            id: t.courseInfo.id,
                            action: e
                        }).then(function(e) {
                            return t.courseInfo.is_user_like = !t.courseInfo.is_user_like, t.courseInfo.is_user_like ? void t.$toast("喜欢成功", "none") : void t.$toast("取消喜欢", "none");
                        }));
                    });
                }), g(n, "getComment", function() {
                    var e = this;
                    this.isRequest = !1;
                    var t = {
                        course_id: this.courseInfo.id,
                        page: this.pager,
                        pagesize: 10,
                        isLoading: !1
                    };
                    (0, s.courseCommentList)(t).then(function(t) {
                        var i = e.comment, n = t;
                        i && 1 != e.pager && (n = [].concat(f(i), f(n))), 1 != e.pager && 4 != e.courseInfo.type || 1 != e.pager && e.courseInfo.type, 
                        e.comment = n, e.isRequest = !0;
                    });
                }), g(n, "clickCom", function(e) {
                    this.modalShow = !this.modalShow, 2 != e ? 3 == e && this.commitComment() : this.dataReturn();
                }), g(n, "isCommentShow", function(e) {
                    var t = this, i = this;
                    if (1 != this.courseInfo.buy.code) return !i.isIphone || i.isIphone && 1 == i.configs.is_ios_pay ? 1 == this.courseInfo.is_alone_sale && 1 == this.courseInfo.price_type || this.isVip && 1 == this.courseInfo.vip_free_see && (2 == this.courseInfo.price_type || 0 == this.courseInfo.is_alone_sale) ? this.$toast("请先领取该课程", "none") : this.$toast("请先购买该课程", "none") : i.isIphone && 0 == i.configs.is_ios_pay && i.$toast(i.configs.ios_pay_title, "none"), 
                    !1;
                    (0, r.h5JudgeLogin)(2).then(function(i) {
                        if (!i) {
                            if (e.uid == t.user.id) return t.$toast("不能评论自己", "none"), void t.dataReturn();
                            t.modalShow = !t.modalShow, t.comment_action = e;
                        }
                    });
                }), g(n, "commitComment", function() {
                    var e = this, t = this;
                    if (this.inputComcontent) {
                        var i = this.comment_action, n = {
                            course_id: this.courseInfo.id,
                            content: this.inputComcontent,
                            cid: i.cid ? i.cid : 0,
                            uid: i.uid ? i.uid : 0
                        };
                        (0, s.courseComment)(n).then(function(i) {
                            t.pager = 1, e.getComment(), e.dataReturn(), e.$toast("评论成功", "none");
                        });
                    } else this.$toast("请输入评论内容", "none");
                }), g(n, "dataReturn", function() {
                    this.inputComcontent = "", this.comment_action = {}, this.modalShow = !1;
                }), g(n, "putOrder", function(e) {
                    var t = this;
                    switch ("1", e) {
                      case 1:
                        t.goOrder();
                        break;

                      case 2:
                        t.enterLive();
                    }
                }), g(n, "enterLive", function() {
                    var e = this;
                    (0, r.h5JudgeLogin)(2).then(function(t) {
                        t || (0, d.route)({
                            url: "/course/live/index",
                            type: 1,
                            data: {
                                id: e.id
                            }
                        });
                    });
                }), g(n, "goOrder", function() {
                    var e = this;
                    (0, r.h5JudgeLogin)(2).then(function(t) {
                        t || (0, d.route)({
                            url: "/course/order/index",
                            type: 1,
                            data: {
                                id: e.id,
                                vip: e.isVip,
                                vip_free_see: e.courseInfo.vip_free_see,
                                price_type: e.courseInfo.price_type
                            }
                        });
                    });
                }), n)
            };
            t.default = v;
        }).call(this, i("543d").default);
    },
    "879b": function(e, t, i) {
        i.d(t, "b", function() {
            return o;
        }), i.d(t, "c", function() {
            return s;
        }), i.d(t, "a", function() {
            return n;
        });
        var n = {
            uniCollapse: function() {
                return i.e("uni_modules/uni-collapse/components/uni-collapse/uni-collapse").then(i.bind(null, "2740"));
            },
            uniCollapseItem: function() {
                return i.e("uni_modules/uni-collapse/components/uni-collapse-item/uni-collapse-item").then(i.bind(null, "249e"));
            },
            courseList: function() {
                return Promise.all([ i.e("common/vendor"), i.e("components/courseList/courseList") ]).then(i.bind(null, "4b60"));
            }
        }, o = function() {
            var e = this, t = (e.$createElement, e._self._c, !e.canShow || !e.isFull || 0 == e.configs.is_ios_pay && e.isIphone || 1 != e.courseInfo.is_alone_sale ? null : 2 == e.courseInfo.price_type && parseFloat(e.courseInfo.line_price) > 0), i = e.modalShow ? e.__get_style([ e.cancelStyle ]) : null, n = e.modalShow ? e.__get_style([ e.confirmStyle ]) : null;
            e.$mp.data = Object.assign({}, {
                $root: {
                    m0: t,
                    s0: i,
                    s1: n
                }
            });
        }, s = [];
    },
    "923b": function(e, t, i) {
        i.r(t);
        var n = i("7f13"), o = i.n(n);
        for (var s in n) "default" !== s && function(e) {
            i.d(t, e, function() {
                return n[e];
            });
        }(s);
        t.default = o.a;
    },
    dcf7: function(e, t, i) {
        i.r(t);
        var n = i("879b"), o = i("923b");
        for (var s in o) "default" !== s && function(e) {
            i.d(t, e, function() {
                return o[e];
            });
        }(s);
        i("7e45");
        var r = i("f0c5"), u = Object(r.a)(o.default, n.b, n.c, !1, null, "4e1b9a76", null, !1, n.a, void 0);
        t.default = u.exports;
    }
}, [ [ "576f", "common/runtime", "common/vendor" ] ] ]);